﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：ISettingDefinitionManager.cs
// 功能描述：TongTongMall
// 
// Create User：jym 2017/02/09
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TongTongMall.Configuration
{
    public interface ISettingDefinitionManager
    {
        /// <summary>
        /// 获取某一项Key/Value的配置
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        SettingDefinition GetSettingDefinition(string name);

        /// <summary>
        /// 获取全部的Key/Value
        /// </summary>
        /// <returns></returns>
        IReadOnlyList<SettingDefinition> GetAllSettingDefinitions();
    }
}
